package com.example.demo.entity;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

/**
 * @author: YanMing.Wang
 * @date: 2024-03-14
 * @desp: entity
 */
@Setter
@Getter
@RequiredArgsConstructor
public class UserEntity {

    // 身份id
    private Integer id;

    // 姓名
    private String name;

    @Override
    public String toString() {
        return "{\"UserEntity\":{" +
                "\"id\":" + id +
                ", \"name\":\"" + name + "\"" + "}" +
                "}";
    }
}
